<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>添加</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <script src="../../../../lib/include.js"></script>

    <style>
        .form-control{margin-bottom: 8px;}
        .form-control:focus,
        .single-line:focus { border-color: #0e9aef !important;}
        .radio-inline {line-height: 5px;}
    </style>
</head>
<body class="gray-bg">
    <div class="wrapper wrapper-content" id="app" v-cloak>

        <div class="ibox float-e-margins">
            <div class="ibox-content">
                <form id="Form" autocomplete="off">
                    <div style="padding: 0">
                        <input type="hidden" name="id">
                        <input type="hidden" name="version" value="0">
                        <input type="hidden" v-if="type == 1" name="parentId" value="0">
                        <div class="form-group pid" v-if="type != 1">
                            <label class="col-sm-2 control-label">父级</label>
                            <div class="col-sm-10">
                                <select class="form-control" id="parentId" name="parentId">
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">名称</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" name="name" placeholder="请输入名称">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">默认收费</label>
                            <div class="col-sm-10 input-group" style="padding-right: 15px;padding-left: 15px;">
                                <input class="form-control" type="text" name="price" value="0"
                                       placeholder="请输入费用">
                                <div class="input-group-addon">元/人</div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">排序</label>
                            <div class="col-sm-10">
                                <input type="number" class="form-control" name="sort" value="100" placeholder="请输入排序">
                            </div>
                        </div>
                    </div>

                    <div style="text-align: center">
                        <a href="javascript:parent.layer.closeAll();" class="btn btn-default" style="width: 10%;">关 闭</a>
                        <button type="submit" class="btn btn-primary" style="width: 10%;" v-if="permission(0)" >保存</button>
                        <button type="submit" class="btn btn-primary" style="width: 10%;" v-else="permission(1)" >保存</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <script src="../../../../js/content-manage/activity/sale-type/edit.js"></script>
</body>
</html>
